[#-- 创建用户订单列表自定义宏。参数说明：par_userOrderPM（订单信息分页实体）--]
[#macro ecs_ud_userorders par_userOrderPM]
	 <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
          <tr align="center">
             <td bgcolor="#ffffff">订单号</td>
             <td bgcolor="#ffffff">下单时间</td>
             <td bgcolor="#ffffff">订单总金额</td>
             <td bgcolor="#ffffff">订单状态</td>
             <td bgcolor="#ffffff">操作</td>
          </tr>
          [#if (par_userOrderPM.data) ??]
	      	  [#list par_userOrderPM.data as order] 
	      	     <tr>
	      	     	 <td align="center" bgcolor="#ffffff">
	      	     	 	<a href="javascript: user_orderDetail('${order.boiId}');" class="f6">${(order.boiOsn)! ""}</a>
	      	     	 </td>
	      	     	 <td align="center" bgcolor="#ffffff">${(order.boiOtime)! ""}</td>
	      	     	 <td align="right" bgcolor="#ffffff">￥${(order.boiTpay)! 0}元</td>
	      	     	 <td align="center" bgcolor="#ffffff">
	      	     	 	[#-- 订单状态--]
	      	     	 	[#assign boiOrder = ((order.boiOrder ? number)! 0)]
	      	     	 	[#-- 支付状态--]
		   	     	 	[#assign boiPay = ((order.boiPay ? number)! 0)]
		   	     	 	[#-- 配送状态--]
		   	     	 	[#assign boiShip = ((order.boiShip ? number)! 0)]
   	     	 	 
	      	     	 	[#if boiOrder == 0]未确认[#elseif boiOrder == 1]已确认[#elseif boiOrder == 2]已取消[#elseif boiOrder == 3]已结单[#elseif boiOrder == 4]已失效[/#if],
	      	     	 	[#if boiPay == 0]未付款[#elseif boiPay == 1]已付款[#elseif boiPay == 2]已退款[/#if],
	      	     	 	[#if boiShip == 0]未配送[#elseif boiShip == 1]配货中[#elseif boiShip == 2]发货中[#elseif boiShip == 3]已发货[#elseif boiShip == 4]已收货[#elseif boiShip == 5]已退货[#elseif boiShip == 6]无法联系[/#if]
					 </td>
					 <td align="center" bgcolor="#ffffff">
					 	<font class="f6">
					 		[#-- 用户只能在管理员”确认“订单之前取消订单--]
					 		[#if (boiOrder == 0 && boiPay == 0 && boiShip == 0)]
					 			<a href="javascript: user_cancelOrder('${order.boiId}');" >取消订单</a>
					 		[#else]
					 			<span style="color:red">
					 				[#if boiOrder == 1]已确认[#elseif boiOrder == 2]已取消[#elseif boiOrder == 3]已结单[#elseif boiOrder == 4]已失效[/#if]
					 			</span>
					 		[/#if]
					 	</font>
					 </td>
	      	     </tr>
	      	  [/#list]	
	      [/#if]
     </table>
[/#macro]